package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

/**
 * 
 * @TableName userpet
 */
@TableName(value ="userpet")
@Data
public class Userpet implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer upid;

    /**
     * 宠物名称
     */
    private String upname;

    /**
     * 宠物生日
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date upborndate;

    /**
     * 宠物性别 (0:公  1：母)
     */
    private String upsex;

    /**
     * 用户编号
     */
    private Integer up_uid;

    /**
     * 品种编号
     */
    private Integer up_bid;

    /**
     * 宠物所在地 --user(faddress)
     */
    private String up_address;

    /**
     * 提醒邮箱  --user(email)
     */
    private String up_email;

    /**
     * 宠物头像
     */
    private String up_file;

    private Integer up_status;
    @TableField(exist = false)
    private User user;
    @TableField(exist = false)
    private Petinfo petinfo;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}